import {useEffect, useRef} from 'react'


function App(){
    const ipt =useRef(null)
    console.log(ipt);
    useEffect(() =>{
        ipt.current.focus()
    },[])

    return (
        <div>
            <input type="text" ref={ipt}/>
        </div>
    )
}

export default App;